package com.cqdev.washer.infra.entity;

import java.util.Date;

public class SqlScript {

    public SqlScript() {
    }

    public SqlScript(Long id, Integer sn, String name, String description, Date gmtModified, String script) {
        this.id = id;
        this.sn = sn;
        this.name = name;
        this.description = description;
        this.gmtModified = gmtModified;
        this.script = script;
    }

    public SqlScript(Long id, Long projectId, Integer sn, String name, String description, Date gmtCreate, Date gmtModified, String script) {
        this.id = id;
        this.projectId = projectId;
        this.sn = sn;
        this.name = name;
        this.description = description;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
        this.script = script;
    }

    private Long id;

    private Long projectId;

    private Integer sn;

    private String name;

    private String description;

    private Integer executeCount;

    private Date lastExecuteTime;

    private String lastExecuteStatus;

    private Long lastElapsedTime;

    private Date gmtCreate;

    private Date gmtModified;

    private String script;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Integer getSn() {
        return sn;
    }

    public void setSn(Integer sn) {
        this.sn = sn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Integer getExecuteCount() {
        return executeCount;
    }

    public void setExecuteCount(Integer executeCount) {
        this.executeCount = executeCount;
    }

    public Date getLastExecuteTime() {
        return lastExecuteTime;
    }

    public void setLastExecuteTime(Date lastExecuteTime) {
        this.lastExecuteTime = lastExecuteTime;
    }

    public String getLastExecuteStatus() {
        return lastExecuteStatus;
    }

    public void setLastExecuteStatus(String lastExecuteStatus) {
        this.lastExecuteStatus = lastExecuteStatus == null ? null : lastExecuteStatus.trim();
    }

    public Long getLastElapsedTime() {
        return lastElapsedTime;
    }

    public void setLastElapsedTime(Long lastElapsedTime) {
        this.lastElapsedTime = lastElapsedTime;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getScript() {
        return script;
    }

    public void setScript(String script) {
        this.script = script == null ? null : script.trim();
    }
}